{$CLEO .cs}

Thread 'Duke O Death'

:Duke_O_Death
wait 0 ms
if
0256:   player $PLAYER_CHAR defined
jf @Duke_O_Death
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
073E: get_car_in_sphere 1@ 2@ 3@ radius 250.0 model #DUKEO handle_as 0@  
if
056E:   car 0@ defined
jf @Duke_O_Death_2
02AC: set_car 0@ immunities BP 1 FP 0 EP 0 CP 1 MP 1 // Set what you want.
                                         
:Duke_O_Death_2 // Make actor car proofed.
if
00DD:   actor $PLAYER_ACTOR driving_car_with_model #DUKEO
jf @Duke_O_Death
03C0: 0@ = actor $PLAYER_ACTOR car
if
056E:   car 0@ defined
jf @Duke_O_Death
02AC: set_car 0@ immunities BP 1 FP 0 EP 0 CP 1 MP 1 // Set what you want.
jump @Duke_O_Death 